package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the JOBQUEUE database table.
 * 
 */
@Entity
@Table(name="JOBQUEUE")
public class Jobqueue implements Serializable {
	private static final long serialVersionUID = 1L;
	private long jobnumber;
	private BigDecimal expuid;
	private String jobcode;
	private String jobcronparams;
	private String jobosname;
	private BigDecimal priority;
	private Date requesttime;
	private BigDecimal serverid;
	private String statuscode;

    public Jobqueue() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(unique=true, nullable=false)
	public long getJobnumber() {
		return this.jobnumber;
	}

	public void setJobnumber(long jobnumber) {
		this.jobnumber = jobnumber;
	}


	@Column(nullable=false)
	public BigDecimal getExpuid() {
		return this.expuid;
	}

	public void setExpuid(BigDecimal expuid) {
		this.expuid = expuid;
	}


	@Column(nullable=false, length=255)
	public String getJobcode() {
		return this.jobcode;
	}

	public void setJobcode(String jobcode) {
		this.jobcode = jobcode;
	}


	@Column(length=255)
	public String getJobcronparams() {
		return this.jobcronparams;
	}

	public void setJobcronparams(String jobcronparams) {
		this.jobcronparams = jobcronparams;
	}


	@Column(nullable=false, length=255)
	public String getJobosname() {
		return this.jobosname;
	}

	public void setJobosname(String jobosname) {
		this.jobosname = jobosname;
	}


	@Column(nullable=false)
	public BigDecimal getPriority() {
		return this.priority;
	}

	public void setPriority(BigDecimal priority) {
		this.priority = priority;
	}


    @Temporal( TemporalType.DATE)
	public Date getRequesttime() {
		return this.requesttime;
	}

	public void setRequesttime(Date requesttime) {
		this.requesttime = requesttime;
	}


	@Column(nullable=false)
	public BigDecimal getServerid() {
		return this.serverid;
	}

	public void setServerid(BigDecimal serverid) {
		this.serverid = serverid;
	}


	@Column(nullable=false, length=1)
	public String getStatuscode() {
		return this.statuscode;
	}

	public void setStatuscode(String statuscode) {
		this.statuscode = statuscode;
	}

}